package com.huatai.saas.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @BelongsProject: nanming-saas
 * @BelongsPackage: com.huatai.saas.dto
 * @Author: hecaiy
 * @CreateTime: 2024-05-06  11:09
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@ApiModel(value = "授权场景用户", description = "授权场景用户")
public class AuthSceneUserDto implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "授权用户id")
	private Long userId;
	@ApiModelProperty(value = "授权场景id", required = true)
	@NotNull(message = "授权场景id不能为空")
	private Long[] sfId;
	@ApiModelProperty(value = "授权开始时间",required = true,example = "2024-05-13 12:00:00")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime authStartTime;
	@ApiModelProperty(value = "授权结束时间",required = true,example = "2024-04-13 12:00:00")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime authEndTime;
	@ApiModelProperty(value = "备注")
	private String remark;
}
